package commonUtils.clients;


import commonUtils.entities.Comment;
import commonUtils.entities.Restful;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "commentservice")
public interface CommentClient {

    @GetMapping("/comments/{id}")
    Restful<List<Comment>> selectCommentByBlogId(@PathVariable Long id);

}
